package com.flower.salary.common.utils;

import lombok.Data;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author lavender
 * @version 1.0
 * @date 2024-03-01 16:58
 */
@Data
public class SalaryException extends RuntimeException{
    private String msg;
    private int code = 500;

    public SalaryException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public SalaryException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public SalaryException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public SalaryException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
